using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Configuration;
using ESoft.Core.DAO;
using ESoft.Core.Data.Entity;

namespace Edu.Web.Data.Entity
{
    /// <summary>
    /// Evaluate
    /// </summary>    
	[Table("evaluate")]
    public partial class EvaluateEntity : BaseModel<long>
    {		    
        /// <summary>
        /// 教师ID
        /// </summary>
		[Column("teacher_user_id")]
        public long TeacherUserId { get; set; }
    
        /// <summary>
        /// 课程ID
        /// </summary>
		[Column("cource_id")]
        public long? CourceId { get; set; }
    
        /// <summary>
        /// 班级ID
        /// </summary>
		[Column("clazz_id")]
        public long ClazzId { get; set; }
    
        /// <summary>
        /// 学生ID
        /// </summary>
		[Column("stu_user_id")]
        public long StuUserId { get; set; }
    
        /// <summary>
        /// 1学生评老师2老师评学生
        /// </summary>
		[Column("eval_type")]
        public int EvalType { get; set; }
    
        /// <summary>
        /// 得分(50不及格，60及格，80良好100优秀)
        /// </summary>
		[Column("amount")]
        public double Amount { get; set; }
    
        /// <summary>
        /// 备注
        /// </summary>
		[Column("remark")]
        public string Remark { get; set; }
    
        /// <summary>
        /// 创建时间
        /// </summary>
		[Column("create_time")]
        public DateTime CreateTime { get; set; }
    }

	public class EvaluateEntityRegstHelper : IEntityMapper
    {
        public void RegistTo(ConfigurationRegistrar configurations)
        {
            configurations.Add<EvaluateEntity>(new EntityTypeConfiguration<EvaluateEntity>());
        }
    }
}

